#include "SiLlist.h"

//void Test01(){
//	SiLNode * node1 = (SiLNode*)malloc(sizeof(SiLNode));
//	node1->data = 1;
//	SiLNode* node2 = (SiLNode*)malloc(sizeof(SiLNode));
//	node2->data = 2;
//	SiLNode* node3 = (SiLNode*)malloc(sizeof(SiLNode));
//	node3->data = 3;
//	SiLNode* node4 = (SiLNode*)malloc(sizeof(SiLNode));
//	node4->data = 4;
//	
//
//	node1->next = &node2;
//	node2->next = &node3;
//	node3->next = &node4;
//	node4->next = NULL;
//
//	SiLNode* plist = &node1;
//
//	SiLPrint(plist);
//
//}

void Test02()
{
	SiLNode* plist = NULL;
	SiLPushBack(&plist, 1);
	SiLPushBack(&plist, 2);
	SiLPushBack(&plist, 3);
	SiLPushBack(&plist, 4);
	SiLPrint(plist);

	/*SiLPushFront(&plist, 5);
	SiLPrint(plist);
	SiLPushFront(&plist, 6);
	SiLPrint(plist);
	SiLPushFront(&plist, 7);
	SiLPrint(plist);
	SiLPushFront(&plist, 8);
	SiLPrint(plist);*/

	SiLPopBack(&plist);
	SiLPrint(plist);
	SiLPopBack(&plist);
	SiLPrint(plist);
	SiLPopBack(&plist);
	SiLPrint(plist);

}

int main()
{
	/*Test01();*/
	Test02();
	return 0;
}